//
//  GHNetWorkTools.h
//  guahao
//
//  Created by osx on 16/9/24.
//  Copyright © 2016年 osx. All rights reserved.
//

#import "AFHTTPSessionManager.h"

typedef void(^FinishedBlock)(id result,NSError *error);

typedef enum : NSUInteger {
    POST,
    GET,
} MethodName;


@interface GHNetWorkTools : AFHTTPSessionManager

+ (instancetype)sharedTools;
- (void)requestDataWith:(MethodName)methodName                                                                                                                                     urlString:(NSString *)urlString parameters:(NSDictionary *)parameters finishedBlock:(FinishedBlock)finished;
@end
